﻿@{
    Layout = null;
    var uid = (Session["user"] as WebAppModel.UserScanQRInfoModel).Uid;
    var TId = (Session["user"] as WebAppModel.UserScanQRInfoModel).TId;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title></title>
    <script src="~/Content/Script/jquery.min.js"></script>
    <style>
              * {
            padding: 0;
            margin: 0;
            cursor:pointer;
        }
        body {
            height: 100vh;
        }
        .isNoPublic {
            height: 1.4rem;
            width: 11.25rem;
            margin: 0 auto;
            font-size: .7rem;
            color: #fff;
            text-align: center;
            line-height: 1.4rem;
            position: absolute;
            left: 0;
            top: 0;
            z-index: 9999;
           background: url(https://shnbbucket.oss-cn-beijing.aliyuncs.com/20180315233216.png) no-repeat;
            background-size: 100%;
        }
       
  
         #LoadingBar {
            position:absolute;
            background-color: rgba(0,0,0,.85);
            width: 100%;
            height: 100%;
            display:flex;
            align-items:center;
            justify-content:center;
            z-index:999;
        }
        ul.my-award {
            width: 100%;
            height: 100%;
            position: absolute;
             color: #FDBE9B;
        }
            ul.my-award a {
                display: flex;
                justify-content: space-between;
                align-items: center;
                border-bottom: 1px solid #FDBE9B;
                padding: 0 15px;
                text-decoration: none;
                height: 55px;
                    color:#FDBE9B;
            }
            ul.my-award a > div:nth-child(1) > div:nth-child(2) {
                font-size:14px;
            }

        .btn {
            background: #F1F5F6;
            color: gray;
            border: none;
            padding: 4px 12px;
            font-size: 14px;
            line-height: 1.6;
            border-radius: 3px;
            text-align: center;
        }
    

    </style>
</head>
<body>
    <div class="isNoPublic">
        活动尚未发布，当前仅供预览！
    </div>
 
</body>
</html>
<script src="~/Scripts/base64.js"></script>
<script>

     
    $.ajax({
        url: "MyPrizeRecordHtml",
        data: { Tid: "@TId" },
        type: "post",
        success: function (res) {
            var html = decode(res);
            $("body").append(html);
            $('title').text($('.pageTitle > span').text());
            $('.pageTitle').remove();
         
        }
    });

     
        function DateFormat(val) {
            var date = new Date(parseInt(val.replace("/Date(", "").replace(")/", ""), 10));
            //月份为0-11，所以+1，月份小于10时补个0
            var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
            var currentDate = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
            var currentHour = date.getHours();
            var currentMin = date.getMinutes();
            var currentSecond = date.getSeconds();
            var dd = date.getFullYear() + "-" + month + "-" + currentDate;
            return dd;
        }

     
   


</script>